<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>background-clip</title>
  <style>
    .box1 {
      width: 400px;
      height: 400px;
      background-color: skyblue;
      padding: 50px;
      border: 50px dashed rgba(255, 0, 0, 0.7);
      font-size: 120px;
      margin: 0 auto;
      color: transparent;
      background-image: url(../../images/bg02.jpg);
      background-repeat: no-repeat;
      /* 图片原始点从哪些开始   border-box  border开始   content-box  content开始   padding-box  padding */
      background-origin: border-box;
            /* 图片原始点从哪些开始   border-box  border开始   content-box  content开始   padding-box  padding */
      -webkit-background-clip: text;
    }


  </style>
</head>
<body>
  <div class="box1">Hello CSS</div>
  
</body>
</html>